// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[test_only]
module std::hash_tests;

use std::hash;
use std::unit_test::assert_eq;

#[test]
fun sha2_256_expected_hash() {
    let input = x"616263";
    let expected_output = x"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad";
    assert_eq!(hash::sha2_256(input), expected_output);
}

#[test]
fun sha3_256_expected_hash() {
    let input = x"616263";
    let expected_output = x"3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532";
    assert_eq!(hash::sha3_256(input), expected_output);
}
